<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RealUser extends Model
{
    protected $table = 'real_users';

    protected $fillable = [
    	'uid',
    	'real_name', //真实姓名
    	'user_card', //身份证号码
    	'front_photo', //正面照片
    	'back_photo', //背面照片
    	'status', //审核状态 1为待审核 2为审核通过 3为审核失败 默认1
    ];

    const STATUS_ONE      = 1;
    const STATUS_TWO      = 3;
    public static $STATUS = [
        self::STATUS_ONE   => '待审核',
        self::STATUS_TWO   => '审核失败',
    ];
    //关联交易单
    public function users()
    {
        return $this->hasMany('App\\Models\\user', 'id', 'uid');
    }
}
